#include "chess_zi.h"

void chess_zi_set(uint8_t state)
{
	uint8_t s1, s2;
	
	if (state == 1) {
		s1 = 1;
		s2 = 0;
	} else {
		s1 = 0;
		s2 = 1;
	}
	
	HAL_GPIO_WritePin(GPIOA, GPIO_PIN_15, (GPIO_PinState)s1);
	HAL_GPIO_WritePin(GPIOB, GPIO_PIN_3, (GPIO_PinState)s2);
}
/******************* (C) COPYRIGHT 2022 FUYEBING*****END OF FILE************/
